# -*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon


class Icon(QWidget):

    def __init__(self, parent=None):
        super(Icon, self).__init__(parent=parent)
        self.initUI()

    def initUI(self):
        self.setGeometry(300, 300, 250, 150)
        self.setWindowTitle("程序图标")
        self.setWindowIcon(QIcon("resource/images/stone_zhang_72.ico"))
        # self.setWindowIcon(QIcon("./zhang18.ico"))


if __name__ == '__main__':
    app = QApplication(sys.argv)
    icon = Icon()
    icon.show()
    sys.exit(app.exec())